﻿@model GameSchool.Models.EditCourseViewModel

@{
    ViewBag.Title = "Edit Course | GameSchool";
    Layout = "~/Views/Shared/_LayoutTeacher.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div class="mainSectionStuff">
    <h2>Edit @Model.courseName</h2>        
    <div id="teacherCourseEdit">  
        <p>This course has <span id="courseXP">@Model.courseXP</span> XP</p>    
        @using (Html.BeginForm())
        {
            @Html.HiddenFor(model => model.courseID)    
            <div class="tableSubtitle">Enter how many levels are in the course:
                 @Html.TextBoxFor(model => model.numberOfLevels)
            </div>
            <p>
                <input type="submit" value="Save and Edit Levels" />
            </p>        
        }
    </div>  
</div>
<ul>
    @section menu{

        <li>@Html.ActionLink("Courses Overview", "TeacherHome", "Teacher")</li> 
        <li>@Html.ActionLink("Edit Course", "CourseEdit", "Course", new { CID = Model.courseID }, null)</li>    
        <li>@Html.ActionLink("Edit Levels", "LevelEdit", "Level", new { CID = Model.courseID }, null)</li>
        <li>@Html.ActionLink("Assignments", "listAssignments", "Assignment", new { CID = Model.courseID }, null)</li>
        <li>@Html.ActionLink("Achievements", "AssignAchievement", "Achievement", new { CID = Model.courseID }, null)</li>
    }
</ul>